//
//  UIColor+Add.h
//  PigMarket
//
//  Created by Felix on 2019/3/4.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIColor (Add)

+ (UIColor *)primaryColor;

+ (UIColor *)globalBackgroundColor;

+ (UIColor *)titleBlackColor;

+ (UIColor *)textPrimaryColor;

+ (UIColor *)textBlackColor;

+ (UIColor *)textGrayColor;

+ (UIColor *)textMiddleGrayColor;

+ (UIColor *)textLightGrayColor;

+ (UIColor *)dividerColor;

+ (UIColor *)tipsGrayColor;
/**
 十六进制颜色
 
 @param hexString 格式为 #ffffff或ffffff
 @return UIColor
 */
+ (nullable UIColor *)colorWithHexString:(nonnull NSString *)hexString;

/**
 十六进制颜色+alpha
 
 @param hexString 格式为 #ffffff
 @param alpha 格式为 1.0
 @return UIColor
 */
+ (nullable UIColor *)colorWithHexString:(nonnull NSString *)hexString alpha:(CGFloat)alpha;

+ (UIColor *)randomColor;

@end

@interface NSString (StringTansformer)

/**
 Checks for a short hexString like #fff and transform it to a long hexstring like #ffffff
 
 @return hexString NSString a normal hexString with the length of 7 characters like #ffffff or the initial string
 */
- (nonnull NSString *)hexStringTransformFromThreeCharacters;

@end

NS_ASSUME_NONNULL_END
